// 基于template/src/views/{{appModules}}/{{pages@DEGRIDVIEW9}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IGridViewModel } from "@/core/interface/view/model";

function getModel(): IGridViewModel {
    return {
        caption: "订单明细",
        title: "订单明细表格视图",
        capPSLanguageRes: "DE.LNAME.IBIZORDERDETAIL",
        titlePSLanguageRes: "PAGE.TITLE.IBIZORDERDETAIL.GRIDVIEW9",
        showDataInfoBar: false,
        codeName: 'IBIZOrderDetailGridView9',
        uiEngineModel: [
                    {
                        name: 'toolbar_deuiaction1_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'deuiaction1',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'refresh__parent',
                        entityCodeName: 'IBIZOrderDetail',
                    },
                    {
                        name: 'toolbar_deuiaction2_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'deuiaction2',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'refresh_root',
                        entityCodeName: 'IBIZOrderDetail',
                    },
                    {
                        name: 'toolbar_deuiaction3_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'deuiaction3',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'Refresh',
                        entityCodeName: '',
                    },
                    {
                        name: 'newdata',
                        triggerType: 'CUSTOM',
                        logicType: 'SYSUILOGIC',
                        eventNames: '',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: '',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: '',
                        entityCodeName: '',
                    },
                    {
                        name: 'opendata',
                        triggerType: 'CUSTOM',
                        logicType: 'SYSUILOGIC',
                        eventNames: '',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: '',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: '',
                        entityCodeName: '',
                    }
            ],
        ctrls: [
            {
                name: 'grid',
                codeName: 'Main',
                controlType: 'GRID',
            },
            {
                name: 'toolbar',
                codeName: 'GridView9toolbar',
                controlType: 'TOOLBAR',
            }
        ],
        ctrlParams: {
            IBIZOrderDetailgrid: {},
            IBIZOrderDetailtoolbar: {},
        },
        cssName: "",
        name: "IBIZOrderDetailGridView9",
        viewType: "DEGRIDVIEW9",
        viewStyle: "DEFAULT",
        showCaption: true,
        isLoadDefault: true,
        entityCodeName: "IBIZOrderDetail",
        keyPSAppDEField: "IBIZOrderDetailId",
        majorPSAppDEField: "IBIZOrderDetailName",
        expandSearchForm:false,
        toolbarItems: [
            {
          		actionLevel: '100',
          		caption: '刷新父节点',
          		captionLanResTag: '',
          		name: 'deuiaction1',
          		showCaption: true,
          		tooltip: '刷新父节点',
          		tooltipLanResTag: '',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'refresh__parent',
          			uIActionMode: 'FRONT',
          			actionTarget: 'NONE',
          			uIActionTag: 'refresh__parent',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_deuiaction1_click',
                  	actionTag: 'refresh__parent',
                  	xDataCtrlName: 'grid',
                  	actionDECodeName: 'IBIZOrderDetail',
                  	predefinedType: '',
                  }
            },
            {
          		actionLevel: '100',
          		caption: '刷新根节点',
          		captionLanResTag: '',
          		name: 'deuiaction2',
          		showCaption: true,
          		tooltip: '刷新根节点',
          		tooltipLanResTag: '',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'refresh_root',
          			uIActionMode: 'FRONT',
          			actionTarget: 'NONE',
          			uIActionTag: 'refresh_root',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_deuiaction2_click',
                  	actionTag: 'refresh_root',
                  	xDataCtrlName: 'grid',
                  	actionDECodeName: 'IBIZOrderDetail',
                  	predefinedType: '',
                  }
            },
            {
          		actionLevel: '100',
          		caption: '刷新表格',
          		captionLanResTag: '',
          		name: 'deuiaction3',
          		showCaption: true,
          		tooltip: '刷新表格',
          		tooltipLanResTag: '',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'fa fa-refresh',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'Refresh',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'Refresh',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_deuiaction3_click',
                  	actionTag: 'Refresh',
                  	xDataCtrlName: 'grid',
                  	predefinedType: 'EDITVIEW_REFRESHACTION',
                  }
            },
        ],
        toolbarLogics: [
            ]     ,
        xDataCtrlName: "grid",
        quickSearchPlaceholder: ['订单明细名称',].join(","),
        useDefaultLayout: true,
        enableRowEdit: false,
        rowActiveMode: 2,
        rowEditDefault: false,
    }
}

export const model = getModel();